<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/cityselect.js"></script>
<script type="text/javascript" language="JavaScript">
	var shoubound = true;  //是否显示之前的日期，true显示，false不显示
	var ordermain_search_js_city_err  = "[%$ST.ordermain_search_js_city_err%]";
	var iframename = "[%$iframename%]";
	$(document).ready(function(){
		var h = $(window).height();
		$('#mainwindowhidden').css({height:h-39});
		var options = {
			beforeSubmit: formverify,
			success:function(){
				return false;
			}
		}
		$('#ordersearch').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	})

	function formverify(formData, jqForm, options) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		
		if(get['citytwo'] != '0' && get['citythree'] == '0') {
			document.ordersearch.citythree.focus();
			alert(ordermain_search_js_city_err);
			return false;
		}  //limitkey 排序字段 limitclass正序还是倒序
		var esarchurl="index.php?archive=ordermain&action=orderlist&orderstate="+get['orderstate']+"&hotelorderid="+get['hotelorderid']+"&tm1="+get['tm1']
		+"&tm2="+get['tm2']+"&yd1="+get['yd1']+"&yd2="+get['yd2']+"&hotelname="+encodeURI(get['hotelname'])+"&hotelstar="+get['hotelstar']
		+"&citytwo="+get['citytwo']+"&citythree="+get['citythree']+"&district="+get['district']+"&pricerange="+get['pricerange']
		+"&roomprice="+get['roomprice']+"&hotelincompany="+get['hotelincompany']+"&guestname="+encodeURI(get['guestname'])+"&guestphone="+get['guestphone']
		+"&limitkey=&limitclass=&userid="+get['userid']+"&hotelmembers="+get['hotelmembers'];
		parent.frames[iframename].search(esarchurl)
		parent.closeifram();
		return false;
	}
</script>
<script type="text/javascript">
$(function() {
	sec_cityone('1','0');
	sec_citytwo('0','0');
	sec_district('0','0');
	gDate("tm1","tm2");_g('img_tm1').onclick=_g('tm1').onclick;
	gDate("tm2");_g('img_tm2').onclick=_g('tm2').onclick;
	gDate("yd1","yd2");_g('img_yd1').onclick=_g('yd1').onclick;
	gDate("yd2");_g('img_yd2').onclick=_g('yd2').onclick;
});
</script>
<!--[if IE 6]>
<style type="text/css" media="screen"> 
body { behavior:url("templates/css/csshover.htc");} 
</style> 
<![endif]-->
<script type="text/javascript" src="/js/calendar.js"></script>
</head>

<body class="bodyflow">
<div class="centerrightwindow">
	<form name="ordersearch" id="ordersearch" method="post" action="#body">
	<div id="mainwindowhidden">
		<div class="suggestion">
			<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="padding-left5 colorgorningage">[%$ST.ordermain_search_title%]</span></span>
		</div>
		<div class="sugtitle-line"></div>
		<div class="formdiv" id="filecheckmanger">
			<table border="0" width="100%">
            	<tr class="trstyle2">
                	<td colspan="2" width="100%">
                        <div class="sugtitle">
                            <span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.ordermain_text_orderinfo%]</span></span>
                        </div>
					</td>
                </tr>
                
				<tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_ordertype%]</td>
					<td width="80%" class="trtitle02">
                    <select size="1" name="orderstate" id="orderstate">
                    		<option value="0">[%$ST.ordermain_text_ordertype0%]</option>
							<option value="1">[%$ST.ordermain_text_ordertype1%]</option>
                            <option value="2">[%$ST.ordermain_text_ordertype2%]</option>
                            <option value="3">[%$ST.ordermain_text_ordertype3%]</option>
                            <option value="4">[%$ST.ordermain_text_ordertype4%]</option>
                            <option value="5">[%$ST.ordermain_text_ordertype5%]</option>
                            <option value="6">[%$ST.ordermain_text_ordertype6%]</option>
                            <option value="7">[%$ST.ordermain_text_ordertype7%]</option>
                            <option value="8">[%$ST.ordermain_text_ordertype8%]</option>
                            <option value="9">[%$ST.ordermain_text_ordertype9%]</option>
                            <option value="10">[%$ST.ordermain_text_ordertype10%]</option>
                            <option value="11">[%$ST.ordermain_text_ordertype11%]</option>
						</select>　[%$ST.payreceiptlist_text_ordersn%] <input type="text" name="hotelorderid" id="hotelorderid" size="20" maxlength="50" class="infoInput"/>
                    </td>
				</tr>
                <tr class="trstyle2">
                	<td colspan="2" width="100%">
                        <div class="sugtitle">
                            <span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.ordermain_text_selectday%]</span></span>
                        </div>
					</td>
                </tr>
				<tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_selectday1%]</td>
					<td width="80%" class="trtitle02">
						<input id="tm1" type="text" name="tm1" value="" class="infoInput" />
						<img style="cursor:pointer;" src="/images/calendar.gif" id="img_tm1" width="16" height="19" align="absmiddle" />
						　[%$ST.ordermain_text_toselect%]
						<input id="tm2" type="text" name="tm2" value="" class="infoInput" />
						<img style="cursor:pointer;" src="/images/calendar.gif" id="img_tm2" width="16" height="19" align="absmiddle" />
					</td>
				</tr>
				<tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_selectday2%]</td>
					<td width="80%" class="trtitle02">
						<input id="yd1" type="text" name="yd1" value="" class="infoInput"/>
						<img style="cursor:pointer;" src="/images/calendar.gif" id="img_yd1" width="16" height="19" align="absmiddle" />
						　[%$ST.ordermain_text_toselect%]
						<input id="yd2" type="text" name="yd2" value="" class="infoInput"/>
						<img style="cursor:pointer;" src="/images/calendar.gif" id="img_yd2" width="16" height="19" align="absmiddle" />
					</td>
				</tr>
                <tr class="trstyle2">
                	<td colspan="2" width="100%">
                        <div class="sugtitle">
                            <span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.ordermain_text_hotelinfo%]</span></span>
                        </div>
					</td>
                </tr>
                <tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_hotelname%]</td>
					<td width="80%" class="trtitle02">
						<input type="text" name="hotelname" id="hotelname" size="30" maxlength="100" class="infoInput"/>
                        　[%$ST.ordermain_text_star%] <select size="1" name="hotelstar" class="select" id="hotelstar">
							<option value="0">[%$ST.ordermain_text_allstar%]</option>
                            <option value="1">[%$ST.ordermain_text_startype1%]</option> 
                            <option value="2">[%$ST.ordermain_text_startype2%]</option>
                            <option value="3">[%$ST.ordermain_text_startype3%]</option>
                            <option value="4">[%$ST.ordermain_text_startype4%]</option> 
						</select>
					</td>
				</tr>
				<tr class="trstyle2" id="select4">
					<td class="trtitle01">[%$ST.ordermain_text_ofcity%]</td>
					<td class="trtitle02">
						<select size="1" name="cityone" class="select" id="cityone" style="display:none;">
							<option value="0">[%$ST.ordermain_add_country_option%]</option>
							<option value="1" selected>[%$ST.ordermain_add_country_value%]</option>
						</select>
						<select size="1" name="citytwo" class="select" id="citytwo">
							<option value="0" selected>[%$ST.ordermain_add_province_option%]</option>
						</select>
						<select size="1" name="citythree" class="select" id="citythree">
							<option value="0" selected>[%$ST.ordermain_add_city_option%]</option>
						</select>
						<select size="1" name="district" class="select" id="district">
							<option value="0" selected>[%$ST.ordermain_add_district_option%]</option>
						</select>
						<span id="cityloading">Loading…</span>
					</td>
				</tr>
                <tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_hotelrange_option%]</td>
					<td width="80%" class="trtitle02">
						 <select size="1" name="pricerange" class="select" id="pricerange">
							<option selected="selected" value="0">[%$ST.ordermain_text_hotelopen_option%]</option>
                            <option value="0,200">[%$ST.ordermain_text_hotelrange_less%]</option>
                            <option value="200,300">200-300元</option>
                            <option value="300,400">300-400元</option>
                            <option value="400,500">400-500元</option>
                            <option value="500,600">500-600元</option>
                            <option value="600,700">600-700元</option>
                            <option value="700,800">700-800元</option>
                            <option value="800">[%$ST.ordermain_text_hotelrange_than%]</option>
						</select>　[%$ST.ordermain_text_roomprice%] <input type="text" name="roomprice" id="roomprice" size="20" maxlength="50" class="infoInput"/>
                    </td>
				</tr>
                <tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_hotelcompany%]</td>
					<td width="80%" class="trtitle02">
						 <select size="1" name="hotelincompany" class="select" id="hotelincompany">
							<option value="0">[%$ST.all_botton%]</option>
                            [%forlist from=$companyarray key=ii%]
                            <option value="[%$companyarray[ii].companyid%]">[%$companyarray[ii].companyname%]</option>
                            [%/forlist%]
						</select>
                    </td>
				</tr>
                <tr class="trstyle2">
                	<td colspan="2" width="100%">
                        <div class="sugtitle">
                            <span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.ordermain_text_guestinfo%]</span></span>
                        </div>
					</td>
                </tr>
				<tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_guestname%]</td>
					<td width="80%" class="trtitle02">
						<input type="text" name="guestname" id="guestname" size="20" maxlength="20" class="infoInput"/>
                        [%$ST.ordermain_add_tel%] <input type="text" name="guestphone" id="guestphone" size="20" maxlength="20" class="infoInput"/>
                    </td>
				</tr>
                <tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.enquirymain_add_userid2%]</td>
					<td width="80%" class="trtitle02">
						<input type="text" name="userid" id="userid" size="20" maxlength="20" class="infoInput"/>
                    </td>
				</tr>
                [%if $power_136250==true %]
                <tr class="trstyle2">
                	<td colspan="2" width="100%">
                        <div class="sugtitle">
                            <span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.ordermain_text_hotelmembersinfo%]</span></span>
                        </div>
					</td>
                </tr>
                <tr class="trstyle2">
					<td width="20%" class="trtitle01">[%$ST.ordermain_text_hotelmembersname%]</td>
					<td width="80%" class="trtitle02">
						 <select size="1" name="hotelmembers" class="select" id="hotelmembers">
							<option value="0">[%$ST.all_botton%]</option>
                            [%forlist from=$memarray key=ii%]
                            <option value="[%$memarray[ii].id%]">[%$memarray[ii].name%]</option>
                            [%/forlist%]
						</select>
                    </td>
				</tr>
                [%/if%]
			</table>
		</div>
	</div>
	<div id="downbotton">
		<div id="subbotton">
			<table border="0" width="100%">
				<tr id="bottonsubmit">
					<td id="right"><input type="submit" name="Submit" id="submitbotton" value="[%$ST.botton_search%]" class="buttonface" title="[%$ST.botton_search%]"/></td>
					<td id="left" class="padding-left5"><input type="reset" name="reset" onClick="javascript:parent.closeifram();" id="release" value="[%$ST.botton_search_reset%]" class="buttonface"  title="[%$ST.botton_search_reset%]" /></td>
				</tr>
			</table>
		</div>
	</div>
	</form>
</div>
</body>
</html>